<nav class="mod mod-footer-links g-row g-col g-col-1 alpha grid_8 clearfix">
  <?php
  if ($footer_menus) {
    foreach ($footer_menus as $menu) {
      $path = ($menu['link']['href'] == '<front>') ? 'javascript:void(0)' : url($menu['link']['href']);
      if ($menu['link']['hidden'] != 1) {
        ?>
        <div class="g-row g-col grid_2">
          <a href='<?= $path ?>'><h2 class="rich"><?= $menu['link']['link_title'] ?></h2></a>
          <ul>
            <?php
            if (!empty($menu['below'])) {
              foreach ($menu['below'] as $below) {
                $path_1 = ($below['link']['href'] == '<front>') ? 'javascript:void(0)' : url($below['link']['href']);
                if ($below['link']['hidden'] != 1) {
                  ?>
                  <li><a href='<?= $path_1 ?>' target="_blank"><?= $below['link']['link_title'] ?></a></li>
                  <?php
                }
              }
            }
            ?>
          </ul>

        </div>
        <?php
      }
    }
  }
  ?>
</nav>
